package cc.comac.mom.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import cc.comac.mom.api.EquipPartBorrowDemandService;
import cc.comac.mom.bean.EquipPartBorrowDemand;
import cc.comac.mom.bean.EquipPartBorrowDetailBean;
import cc.comac.mom.datahandlers.entity.EquipPartBorrowDemandDataHandler;
import cc.comac.mom.util.ResultBean;
@RestController
@Service
public class EquipPartBorrowDemandServiceImpl implements EquipPartBorrowDemandService{

	@Autowired
	private EquipPartBorrowDemandDataHandler equipPartBorrowDemandDataHandler;
	@Override
	public ResultBean selectBysomeFields(@RequestBody EquipPartBorrowDemand equipPartBorrowDemand) {
		ResultBean selectBysomeFields = equipPartBorrowDemandDataHandler.selectBysomeFields(equipPartBorrowDemand);
		return selectBysomeFields;
	}
	@Override
	public ResultBean selectSpareWarehouseStock(@RequestBody EquipPartBorrowDetailBean equipPartBorrowDetailBean) {
		ResultBean selectSpareWarehouseStock = equipPartBorrowDemandDataHandler.selectSpareWarehouseStock(equipPartBorrowDetailBean);
		
		return selectSpareWarehouseStock;
	}

}
